package com.wtb.javatool.service;

import com.wtb.javatool.entity.Project;
import com.wtb.javatool.entity.Tag;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
@Service
public interface IProjectService {
    ArrayList<Project> SelectProjectByStudentId(int studentId);
    /**
     * 查询公开此时项目
     * @param isPublic
     */
    ArrayList<Project> SelectProjectByIsPublic(int isPublic);
    /**
     * 查询项目详情
     * @param projectId
     */
    Project SelectProjectDetailsByProjectId(int projectId);
    /**
     * 根据信息查询项目
     * @param projectName
     * @param studentName
     * @param stars
     */
    ArrayList<Project> SelectProjectByInfo(String projectName,String studentName,int starts);
    /**
     * 查询个人项目分类
     * @param typeId,optionId,fatherOptionId, studentId
     */
    ArrayList<Project> SelectProjectByCategory(int typeId,int optionId,int fatherOptionId);

    /**
     * 添加项目
     */
    Integer addProject(Project project);
    /**
     * 更新项目
     */
    Integer updateProject(Project project);


    ArrayList<Project>  SelectStudentProjectByInfo(int studentId , String projectName,String studentName,int stars);


    ArrayList<Tag> SelectAllTag();
}

